<html>
<head>
    <title>个人信息</title>
    <#include "../common/header.ftl">
    <script type="text/javascript" src="/chat/js/addFriend.js"></script>
</head>
<body>
<div style="height: 20%;width: 100%"></div>
<div align="center" style="width: 100%;margin-bottom: 20px">

        <img style="border-radius:50%;margin:10px auto"
             src="${userDTO.headImage!""}"
             width="100px" height="100px">

    <br>
    <h2 style="font-family: 'Adobe 黑体 Std R';color: #949fb5">${userDTO.nickname!""}</h2>
    <br>
    <div id="button">
    <#if flag==0>
       <a id="btn" href="/chat/join?fid=${userDTO.id!""}" class="weui-btn weui-btn_plain-primary">开始聊天</a>
    <#else >
       <input type="button" id="btn" onclick="add();" class="weui-btn weui-btn_plain-primary" value="加为好友"></input>
    </#if>
    </div>
</div>
</body>
<script>
    var uid="${token!""}";
    var fid="${userDTO.id!""}";
</script>
<script>
    function tip_success(msg) {
        $.toptip(msg,"success");
    }
    function tip_error(msg){
        $.toptip(msg,"error");
    }
</script>

</html>